package com.baidu.sggc.third.ab.agent;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class AppInstanceListRespDto {

  private int code;
  private String message;
  private Result result;
  private Integer total;
  @JsonProperty("has_more")
  private Boolean hasMore;


  @Data
  public static class Result {
    private List<AppInstance> data;
  }

  @Data
  public static class AppInstance {
    @JsonProperty("app_id")
    private String appId;
    @JsonProperty("app_model_id")
    private String appModelId;
    private String name;
    private String desc;
    private List<String> tags;
    @JsonProperty("page_views")
    private Integer pageViews;
    @JsonProperty("like_count")
    private Integer likeCount;
    private String avatar;
    @JsonProperty("template_id")
    private String templateId;
    @JsonProperty("template_name")
    private String templateName;
    @JsonProperty("publisher_name")
    private String publisherName;
    @JsonProperty("is_like")
    private boolean isLike;
    @JsonProperty("copy_permission")
    private Boolean copyPermission;
    private String version;
    @JsonProperty("chat_link")
    private String chatLink;
  }

}
